package com.ego.member.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ego.member.dao.MemberReceiveAddressDao;
import com.ego.member.po.MemberReceiveAddress;
import com.ego.member.service.MemberReceiveAddressService;

import java.util.List;

/**
 * @program: ego
 * @description 会员收货地址对应实现类
 * @author KamTang
 * @date 2022-11-13 13:28:12
 */
@Service("memberReceiveAddressService")
public class MemberReceiveAddressServiceImpl extends ServiceImpl<MemberReceiveAddressDao, MemberReceiveAddress> implements MemberReceiveAddressService {
    @Override
    public List<MemberReceiveAddress> gets(Long memberId) {
        return this.list(new QueryWrapper<MemberReceiveAddress>().eq("member_id", memberId));
    }
}
